﻿using System;
using System.Threading.Tasks;
using System.Threading;
using wt.wine.Domain.Entities;

namespace wt.wine.Application.Common.Interfaces
{
    public interface IRoletableRepository
    {
        /// <summary>
        /// 获取下级信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task<roletable> GetRoleTableById(int id, CancellationToken cancellationtoken);

        /// <summary>
        /// 获取当前角色
        /// </summary>
        /// <param name="id"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task<roletable> GetRoleTableByRoleId(int id, CancellationToken cancellationtoken);
    }
}
